﻿#include<iostream>
#include"Counter.h"
using namespace std;

int main() {
	int no;

	Counter x;
	Counter y;

	cout << "向上计数次数：";
	cin >> no;

	for (int i = 0; i < no; i++) {
		cout << x++ << ' ' << ++y << '\n';
	}

	cout << "向下计数次数：";
	cin >> no;

	for (int i = 0; i < no; i++) {
		cout << x-- << ' ' << --y << '\n';
	}

	if (!x) {
		cout << "x为0\n";
	}
	else {
		cout << "x不为0\n";
	}

	cin.get();
	cin.get();
}